delete_cmd:
  cmd.run:
    - name: |
        sed -i '/JAVA_HOME/d'  /etc/profile
        rm /usr/local/jdk1.7.0_60  -rf
        rm /usr/local/jdk1.8.0_102 -rf
        rm /usr/local/jdk -rf
        rm /usr/bin/java -f
